<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        h2{
            text-align: center;
        }
        form{
            padding: 20px;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            text-align: center;
            background: #fff;
        }
        .list {
            margin: auto;
            width: 500px;
            line-height: 1.5;
            border-top: 1px solid #aaa;
            box-shadow: 1px -1px 2px 0 #999;
            padding-bottom: 100px;
        }
        .first_item{
            padding: 10px;
            border-bottom: 1px solid #999;
        }
        .userinfo{
            display: flex;
            align-items: center;
        }
        .userinfo img{
            width: 40px;
            height: 40px;
            border-radius: 50%;
            margin-right: 20px;
        }
        .userinfo div{
            font-weight: bold;
            font-size: 14px;
        }
        .text_cont{
            padding-left: 50px;
        }
        .text_cont .second_list{
            background: #9995;
            padding: 10px;
            color: rgb(45, 105, 209);
            overflow: hidden;
        }
        .text_cont .second_list span{
            color: #000;
        }
        .text_cont .text{
            padding: 0 0 10px  0;
        }
        .down{
            max-height: 900px;
            transition: all 1s;
        }
        .up{
            max-height: 72px;
            transition: all 1s;
        }
        .more{
            position: relative;
            color: rgb(42, 128, 234);
        }
        .down+.more::after{
            content:'';
            position: absolute;
            left: 90px;
            top: 12px;
            width: 8px;
            height: 8px;
            border-top: 2px solid rgb(42, 128, 234);
            border-right: 2px solid rgb(42, 128, 234);
            transform: rotate(-45deg);

        }
        
        .up+.more::after{
            content:'';
            position: absolute;
            left: 90px;
            top: 6px;
            width: 8px;
            height: 8px;
            border-top: 2px solid rgb(42, 128, 234);
            border-right: 2px solid rgb(42, 128, 234);
            transform:rotate(135deg)
        }
    </style>
</head>
<body>
    <h2>欢迎大家留言交流</h3>
    <div id="list" class="list">
        
    </div>
    <form>
            <textarea name="text" id="text" cols="30" rows="3" placeholder="点击输入发送评论吧" name="textarea"></textarea>
            <button type="button" onclick="sent()">发送</button>
            <button type="button" onclick="quxiao()">取消</button>
    </form>
    <script src="./index.js"></script>
</body>
</html>